package com.szqhyxj.youxiangju.sys.components.view.popview;

import android.content.Context;
import android.graphics.drawable.Drawable;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageView;

import com.szqhyxj.youxiangju.R;

/**
 * XiaoPanYu
 * on 2018/10/26
 */
public class SingleImgDialog extends BaseDialog {

    private ImageView img;

    public SingleImgDialog(Context context) {
        super(context);

    }

    @Override
    public View initDialogView(Context context) {
        View view = LayoutInflater.from(context).inflate(R.layout.dialog_single_img, null);
        img = view.findViewById(R.id.img);
        img.setOnClickListener(this);
        return view;
    }

    public void setImg(Drawable drawable){
        img.setImageDrawable(drawable);
    }



}
